home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1460.dms / var1460.adf / BOBs / Example8.c < prev    next >
Text File  |  1992-05-18  |  4KB  |  89 lines

  1. /***********************************************************/
  2. /*                                                         */
  3. /* Amiga C Encyclopedia (ACE) V3.0      Amiga C Club (ACC) */
  4. /* -------------------------------      ------------------ */
  5. /*                                                         */
  6. /* Book:    ACM Graphics                Amiga C Club       */
  7. /* Chapter: BOBs                        Tulevagen 22       */
  8. /* File:    Example8.c                  181 41  LIDINGO    */
  9. /* Author:  Anders Bjerin               SWEDEN             */
  10. /* Date:    92-04-28                                       */
  11. /* Version: 1.00                                           */
  12. /*                                                         */
  13. /*   Copyright 1992, Anders Bjerin - Amiga C Club (ACC)    */
  14. /*                                                         */
  15. /* Registered members may use this program freely in their */
  16. /*     own commercial/noncommercial programs/articles.     */
  17. /*                                                         */
  18. /***********************************************************/
  19.  
  20. /* This example demonstrates how to use the automatic collision   */
  21. /* routines. 15 BOBs will be randomly placed on the screen. The   */
  22. /* BOBs will have the colours red, green and blue (set randomly). */
  23. /* The BOBs will then start to move in all directions. If a BOB   */
  24. /* has hit the border of the display the collision routine will   */
  25. /* detect this and change that BOB's direction. If a BOB hits     */
  26. /* another BOB three things may happen:                           */
  27. /* 1. If one of the BOB was green and the other red both will     */
  28. /*    become yellow.                                              */
  29. /* 2. If a blue BOB has hit a green or red BOB the green or red   */
  30. /*    BOB will become yellow, while the blue BOB is unchanged.    */
  31. /* 3. If a yellow BOB hits another BOB nothing will happen. (No   */
  32. /*    collision events will be triggered.)                        */
  33.  
  34. I am sorry but this file is only available for registered
  35. members. 
  36.  
  37. The registration fee is only £30, $60, SEK 300, or similar
  38. amount in your own currency (price includes everything). The
  39. Amiga C Encyclopedia is the largest collection of documents,
  40. examples and utilities in C for the Amiga and it is still among
  41. the cheapest manuals. But this is not all, a registered owner
  42. will also get:
  43.  
  44.   1. Two disks containing the last parts of the encyclopedia.
  45.      The disks will be sent by first class air mail.
  46.  
  47.   2. Registration card for the Amiga C Club (ACC).
  48.  
  49.   3. Immediate information about updates.
  50.  
  51.   4. Updated versions of the encyclopedia for only the cost of
  52.      disks plus postage and packing.
  53.  
  54.   5. Assistance with digitizing colour pictures and sampling
  55.      sound effects.
  56.  
  57.   6. Unlimited help with your C programs. You never have to be
  58.      alone with your problems.
  59.  
  60.   7. The right to use parts of the manual in your own
  61.      commercial/non-commercial programs/articles.
  62.  
  63. Can any other manual give you all this???
  64.  
  65. The simplest way of paying is to include the money in a letter
  66. in cash. US dollar bills, English pounds or Swedish SEK are
  67. preferred, but all currencies are accepted. You can also send
  68. the money as a "Postal Money Order", ask your local bank or
  69. post office. Please do not use cheques. It is sadly extremely
  70. expensive to cash a foreign cheque here in Sweden.
  71.  
  72. If you live in Scandinavia you can send the money to "Svenska
  73. Post Girot, postgiro konto: 641 88 30 - 3, betalnings-
  74. mottagare: Datra".
  75.  
  76. Please send the registration fee together with your complete
  77. address to:
  78.  
  79.   Datra, Amiga C Club
  80.   Anders Bjeri
  81.   Tulevagen 22
  82.   181 41  LIDINGO
  83.   SWEDEN
  84.  
  85. I have worked for more than four years now with this
  86. encyclopedia, and with your help I can continue to improve it.
  87.  
  88. Happy programming!!!
  89.